<?php

class Backend_FaqController extends Zend_Controller_Action {

//put your code here
    public function init() {
        $this->_helper->layout->setLayout('backend');
        Service_Account::checkLogin(2);
    }
    
    public function indexAction() {
        if ($this->_request->isPost()) {
            $desc = $this->_request->getPost('faq');
            $desc = stripslashes($desc);
            $result = Service_Model::factory('Faq', 'updateFaq', $desc, 'backend');
        }

        $faq = Service_Model::factory('Faq', 'getFaq', NULL, 'backend');
        $this->view->faq = $faq['faqdesc'];
    }
}

